import request from '@/utils/request'

// 获取购物车列表
export function getShopCarList() {
  return request({
    url: '/shopCar/list',
    method: 'get'
  })
}

// 添加商品到购物车
export function addShopCar(data) {
  return request({
    url: '/shopCar',
    method: 'post',
    data
  })
}

// 从购物车删除商品
export function deleteShopCar(shopId) {
  return request({
    url: `/shopCar/${shopId}`,
    method: 'delete'
  })
} 